<?php

namespace common\Table;

use common\Table\baseTable;

class ActTable extends baseTable {

    private $_table = 'td_act';

    public function insert($actColumns) {
        return $this->db->insert($actColumns, $this->_table);
    }
    
    public function selectIdfa($idfa, $appid) {
        return $this->db->selectAll('select IDFA from '. $this->_table .' where APPSTOREID = :appid and IDFA in('.$idfa.')', array('appid' => $appid));
    }
    
    public function selectIdfaToOne($idfa, $appid) {
        return $this->db->selectOne('select IDFA from '. $this->_table .' where APPSTOREID = :appid and IDFA = :idfa', array('appid' => $appid, 'idfa' => $idfa));
    }
}
